#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    //设置label 和radio button伙伴关系

    ui->label->setBuddy(ui->radioButton);
    ui->label_2->setBuddy(ui->radioButton_2);
//    Qlabel中可以指定快捷键   &A  通过alt+A触发快捷键


}

Widget::~Widget()
{
    delete ui;
}

